package cn.tedu.tmall.front.account.dao.persist.repository.impl;

import cn.tedu.tmall.front.account.dao.persist.mapper.UserMapper;
import cn.tedu.tmall.front.account.dao.persist.repository.IUserRepository;
import cn.tedu.tmall.front.account.pojo.entity.User;
import cn.tedu.tmall.front.account.pojo.vo.UserStandardVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepositoryImpl implements IUserRepository {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int updateById(User user) {
        return userMapper.updateById(user);
    }

    @Override
    public UserStandardVO getStandardById(Long id) {
        return userMapper.getStandardById(id);
    }
}
